<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style type="text/css">
    *{
        margin: 0;padding: 0;
    }
    body{
        padding: 100px;text-align: center;
    }
    span{
        display: inline-block;
    }
    .left,.right{
        height: 80px;
        width: 50px;
        background-color: red;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }
    .left{
        transform: rotateZ(-45deg);
    }
    .right{
        transform: translateX(-34px) rotateZ(45deg);
    }
    .heart{
        animation: beat 1.5s infinite;
    }
    @keyframes beat{
        30%{
            transform: scale(1.5);
        }
        100%{
            transform: scale(1);
        }
    }
    .container{
        width: 1200px;margin: auto;
        position: relative;
    }
    .point{
        width:10px;height: 10px;display: block;background: cornflowerblue;position: absolute;border-radius: 50%;
    }
    .ripple-1{
        animation: ripple 4500ms 224ms infinite;
    }
    .ripple-2{
        animation: ripple 4500ms 1575ms infinite;
    }
    .ripple-base{
        width: 120px;height: 120px;border: 2px solid #00cdec;border-radius: 50%;transform: scale(0.01);
        position: absolute;left: -57px;top:-57px;
    }
    @keyframes ripple{
        100%{opacity: 0;transform: scale(1);}
    }
</style>
<body>
    <!--
        vertical-align 设置垂直对齐  必须作用于inline-block属性 需要设置父元素的行高才能垂直居中
        z-index 数字越大 层级越高 
            若没设置z-index 页面中出现元素靠后的层级越高 有定位的层级比没定位的层级高
        baseline 基线对齐按font-size控制大小
        vertical-align:middle 中线对齐
    -->
    <div class="container">
        <div class="point" style="top:196px;left:950px">
            <div class="ripple-base ripple-1"></div>
            <div class="ripple-base ripple-2"></div>
        </div>
    </div>
    <span class="heart">
        <span class="left"></span>
        <span class="right"></span>
    </span>
</body>
</html>